package bavaria.hightec.conditions;

public class DepositAccountConditions extends Conditions {
	
	private static double creditInterest;

	public DepositAccountConditions(runtime runtime) {
		super(runtime);
		creditInterest = generateCreditInterest(runtime);
	}
	
	public double getCreditInterest(){
		return creditInterest;
	}
	
	private double generateCreditInterest(runtime runtime){
		if(runtime==runtime.THREE){
			creditInterest=0.7;
		}
		else if(runtime==runtime.SIX)
			creditInterest=0.9;
		else if(runtime==runtime.TWELVE)
			creditInterest=1.2;
		
		return creditInterest;
	}
	
	public static double getCreditInterest(runtime runtime){
		if(runtime==runtime.THREE){
			creditInterest=0.7;
		}
		else if(runtime==runtime.SIX)
			creditInterest=0.9;
		else if(runtime==runtime.TWELVE)
			creditInterest=1.2;
		
		return creditInterest;
		
	}
	
	

}
